﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Logs.aspx.cs"	Inherits="Admin_Logs" %>
<%@ Register Assembly="QHH.Web" Namespace="QHH.Web.UI.WebControls" TagPrefix="qhh" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>



</head>
<body class="GridBody">
	<form id="GridForm" runat="server">
	<div class="GridPage">
	    <div class="GridToolbar">
			<table class="toolbarTable" cellpadding="0" cellspacing="5">
				<tr>
					<td>
					</td>
					<td>
						<asp:Button ID='btnAdd' runat='server' Text='新增' OnClientClick='return Add();' CssClass="styButton" />
					</td>
				</tr>
			</table>
		</div>
		<div class="GridSearch">
			<div>
				<table border="0" align="left">
					<tr>
						<td align="right" nowrap="nowrap">
							 会员账号
						</td>
						<td align="left" style="padding-right: 8px;">
							<asp:TextBox ID="txtName" runat="Server" Width="115px"></asp:TextBox>
						</td>
						<td align="right" nowrap="nowrap">
							 日志类型
						</td>
						<td align="left" style="padding-right: 8px;">
                            <asp:DropDownList ID="ddlType" Width="120" runat="server"></asp:DropDownList>
						</td>
					</tr>
				</table>
			</div>
			<div class="GridAdvancedSearchButton">
				<asp:Button ID="btnFind" runat="server" Text="搜索" OnClick="Search_Click" CssClass="styButton" />
			</div>
			<div style="clear: both; height: 0px;">
			</div>
		</div>
		<%--表格区域--%>
		<div class="GridTable">
			<asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" Width="100%" CssClass="GridView">
				<Columns>
                    <asp:BoundField DataField="username" HeaderText="会员账号">
                        <HeaderStyle Width="8%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                   <asp:BoundField DataField="UserTypeTxt" HeaderText="用户类型">
                        <HeaderStyle Width="8%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                   <asp:BoundField DataField="LogTypeName" HeaderText="日志类型">
                        <HeaderStyle Width="8%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Description" HeaderText="日志内容">
                        <HeaderStyle Width="25%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Ip" HeaderText="IP">
                        <HeaderStyle Width="10%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
					<asp:TemplateField HeaderText="操作">
						<HeaderStyle  HorizontalAlign="Center" />
						<ItemTemplate>
						    <a href="http://9n4.cn/?ua=<%# UrlEncodeStr(Eval("UserAgent").ToString()) %>" title="<%# Eval("UserAgent") %>" target="_blank">
						        <%# CutStr(Eval("UserAgent").ToString(),50) %>
						     </a>
						</ItemTemplate>
						<ItemStyle Wrap="False" HorizontalAlign="left" />
					</asp:TemplateField>
                    <asp:BoundField DataField="cdate" HeaderText="时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}">
                        <HeaderStyle Width="12%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
				</Columns>
				<RowStyle CssClass="GridViewRow" />
				<AlternatingRowStyle CssClass="AlternatingRow" />
				<SelectedRowStyle CssClass="GridViewRowSelected" />
				<HeaderStyle CssClass="GridViewHeader" />
				<FooterStyle CssClass="GridViewRow" />
			</asp:GridView>
		</div>
		<%--分页控件--%>
		<div class="GridPager">
			<qhh:Navigator ID="Navigator" runat="server" OnPageChanged="Navigator_PageChanged">
			</qhh:Navigator>
		</div>
	</div>
	<asp:HiddenField ID="hidRecordID" runat="server" />
	

	</form>
</body>
</html>
